Rnoc\Retainful\Api\AbandonedCart\RestApi D

Total Complexity 130
Dependencies 10
Dependents 2
Total lines 753
Lines of code 406
Logical lines of code 237
Comment lines 239
Methods 46
Properties 23

Methods 46

Method Rating Maintainability Complexity Lines of code
getClientIp()
A
56 8 20
encryptData()
S
54 6 20
changeOrderStatus()
S
58 5 16
getLineItemTotal()
S
62 6 10
formatToIso8601()
S
58 5 15
initStorage()
S
60 4 15
setCartToken()
S
59 4 14
getCustomerCheckoutDetails()
S
60 4 13
markOrderAsRecovered()
S
60 4 12
getUserAcceptLanguage()
S
62 4 11
generateCartHash()
S
62 4 11
getUserAgent()
S
64 4 10
setCartCreatedDate()
S
65 4 9
__construct()
S
70 4 6
setSessionShippingDetails()
S
64 4 10
setCustomerBillingDetails()
S
64 4 10
retrieveCartToken()
S
62 3 11
generateCartToken()
S
56 2 17
isPendingRecovery()
S
68 3 7
getRetainfulApiUrl()
S
68 3 6
canTrackAbandonedCarts()
S
70 3 6
isBuyerAcceptsMarketing()
S
65 3 8
userCartCreatedAt()
S
66 3 8
convertToCurrency()
S
71 3 6
getCartToken()
S
67 2 8
syncCart()
S
65 2 9
decryptData()
S
62 2 10
refreshFragmentsOnPageLoad()
S
74 2 4
considerFailedAsAbandoned()
S
74 2 4
considerCancelledAsAbandoned()
S
74 2 4
considerOnHoldAsAbandoned()
S
74 2 4
isOrderRecovered()
S
67 2 7
isOrderInPendingRecovery()
S
67 2 7
isOrderHasValidOrderStatus()
S
64 2 9
getAddressMapFields()
S
60 1 15
retrieveUserIp()
S
67 2 8
removeSessionShippingDetails()
S
81 1 3
formatDecimalPriceRemoveTrailingZeros()
S
70 1 6
getCurrentCurrencyCode()
S
75 1 4
formatUserIP()
S
74 1 4
formatDecimalPrice()
S
73 1 5
removeSessionBillingDetails()
S
81 1 3
hashTheData()
S
75 1 4
getClientDetails()
S
71 1 6
getRecoveryLink()
S
67 1 7
isValidOrderStatusToResetCartToken()
S
75 1 4